// 测试数据

utils.testData = {};
// 左侧饼图
utils.testData.pieData = {
    // title: { text: '能耗合计重量分布饼图', subtext: '2019-4 33所数据'},
    legend: {
        data: ['电力', '天然气', '热力', '液化天然气', '液化石油气', '汽油柴油', '燃料油', '原煤', '其他能源']
    },
    series: [
        {data: [{value: 435, name: '电力'}, {value: 235, name: '天然气'}, {value: 135, name: '热力'}, {value: 745, name: '液化天然气'}, {value: 35, name: '液化石油气'}, {value: 435, name: '汽油柴油'}, {value: 435, name: '燃料油'}, {value: 435, name: '原煤'}, {value: 435, name: '其他能源'}, ]},
        {data: [{value: 435, name: '电力'}, {value: 235, name: '天然气'}, {value: 135, name: '热力'}, {value: 745, name: '液化天然气'}, {value: 35, name: '液化石油气'}, {value: 435, name: '汽油柴油'}, {value: 435, name: '燃料油'}, {value: 435, name: '原煤'}, {value: 435, name: '其他能源'}, ]},
    ]
};

// 中下横向柱状图
utils.testData.middleDownData = {
    legend: {
        data: ['钥匙量', '有效房源量']
    },
    yAxis: [
        {data: ['北京', '四川', '湖北', '湖南', '广西', '山西', '江西', '重庆', '黑龙江', '海南']}
    ],
    series: []
}

// 右上同比图
utils.testData.rightUpData = {
    legend: {
        data: ['2018', '2019', '变化率']
    },
    series: [
        {
            name:'2018',
            color: '#0092ff',
            type:'bar',
            data:[2, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3]
        },
        {
            name:'2019',
            type:'bar',
            color: '#5de3e1',
            data:[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3]
        },
        {
            name:'变化率',
            type:'line',
            color: '#60a900',
            data:[2.0, 2.2, 3.3, 4.5, 106.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2]
        }
    ]
}

// 右下环比图
utils.testData.rightDownData = {
    legend: {
        data: ['2019', '变化率']
    },
    series: [
        {
            name:'2019',
            type:'bar',
            color: '#0092ff',
            data:[2, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3]
        },
        {
            name:'变化率',
            type:'line',
            color: '#60a900',
            data:[12.0, 20.2, 3.3, 104.5, 6.3, 10.2, 20.3, 23.4, 123.0, 16.5, 12.0, 6.2]
        }
    ]
}

// 表格数据
utils.testData.tableData = [
    {
        "id": "google",
        "value": "1000",
        "handle": "详情",
    },
    {
        "id": "apple",
        "value": "800",
        "handle": "详情",
    },
    {
        "id": "facebook",
        "value": "700",
        "handle": "详情",
    }
];